
import 'dart:convert';

IncomeEntity incomeEntityFromJson(String str) => IncomeEntity.fromJson(json.decode(str));

String incomeEntityToJson(IncomeEntity data) => json.encode(data.toJson());

class IncomeEntity {
  double profitSum;
  double storageSum;

  IncomeEntity({
    required this.profitSum,
    required this.storageSum,
  });

  factory IncomeEntity.fromJson(Map<String, dynamic> json) => IncomeEntity(
    profitSum: json["Profit_sum"]?.toDouble(),
    storageSum: json["Storage_sum"]?.toDouble(),
  );

  Map<String, dynamic> toJson() => {
    "Profit_sum": profitSum,
    "Storage_sum": storageSum,
  };
}
